<template>
  <div class=''>
   主页
   <my-cover v-model="imgSrc"></my-cover>
   <el-form>
     <my-channels @abc="hAbc"></my-channels>
     <my-channels-vmodel v-model="channel_id_vmodel"></my-channels-vmodel>
   </el-form>
  </div>
</template>

<script>
import MyChannels from '@/components/MyChannels'
import MyChannelsVmodel from '@/components/MyChannelsVmodel'
import MyCover from '@/components/MyCover'
export default {
  name: 'Home',
  components: {
    MyChannels,
    MyChannelsVmodel,
    MyCover
  },
  props: { },
  data () {
    return {
      imgSrc: '',
      channel_id_vmodel: 10, // 当前选中频道
      channel_id: '' // 值需要从子组件MyChannels中更新过来
    }
  },
  computed: { },
  created () { },
  methods: {
    hAbc (value) {
      // console.log('传来的参数是：', value)
      this.channel_id = value
    }
  }
}
</script>
